/*
 * @Description: 
 * @Author: fhw
 * @Date: 2022-11-19 20:59:21
 */
import { forwardRef, Module } from '@nestjs/common';
import { GroupChatService } from './group-chat.service';
import { GroupChatController } from './group-chat.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { GroupChat } from './entities/group-chat.entity';
import { ChatUserModule } from 'src/chat_user/chat_user.module';
import { ChatUserGroupModule } from 'src/chat_user_group/chat_user_group.module';
import { SysMessageModule } from 'src/sys_message/sys_message.module';
import { GroupChatRecord } from 'src/chat-record/entities/group-chat-record.entity';

@Module({
  imports: [
    TypeOrmModule.forFeature([GroupChat, GroupChatRecord]),
    forwardRef(() => ChatUserModule),
    forwardRef(() => ChatUserGroupModule),
    forwardRef(() => SysMessageModule)
  ],
  controllers: [GroupChatController],
  providers: [GroupChatService],
  exports: [GroupChatService]
})
export class GroupChatModule { }
